
package com.springcloud.sc.ucpv5.client.contentmain;


public class MainConstant {
	public static final int ACTION_ID_CALL = 2;// 呼叫
	public static final int ACTION_ID_FORCE_INSERT_CALL = 3;// 强插
	public static final int ACTION_ID_FORCE_BREAK_CALL = 4;// 强拆
	public static final int ACTION_ID_BROADCAST_CALL = 5;// 广播

	public static final int ACTION_ID_ACCEPT_CALL = 6;// 接听电话
	public static final int ACTION_ID_BREAK_CALL = 7;// 挂断电话
	public static final int ACTION_ID_TAPE_CALL = 8;// 电话录音
	public static final int ACTION_ID_REQ_TALK = 9;// 申请话权
	public static final int ACTION_ID_RELEASE_TALK = 12;// 申请话权
	public static final int ACTION_ID_MEETING_APPEND = 13;// 会议追加呼叫
	public static final int ACTION_ID_MEETING_MEDIAVIEW = 14;// 会议视频互通
	public static final int ACTION_ID_RESEND = 15;// 呼叫转发

	public static final int ACTION_ID_SHOW_DETAIL = 10;// 显示详细信息
	public static final int ACTION_ID_FILTER = 11;// 过滤

	public static final int ACTION_ID_REFRESH_DATA = 18;// 过滤

	public static final int ACTION_ID_BUILD_TASK = 19;// 创建任务
	public static final int ACTION_ID_CLOSE_TASK = 20;// 注消任条

	public static final int ACTION_ID_Listen = 21;// 监听
	public static final int ACTION_ID_ListenEnv = 22;// 环境监听

	public static final int ACTION_ID_MEETING = 32;// 会议呼叫
	public static final int ACTION_ID_MEETING_MEDIA = 33;// 媒体会议 呼叫

	public static final int ACTION_ID_REFRESH_DATA_NO_STATUS = 23;
	public static final int ACTION_ID_ACCEPT_AUTH_CALL = 24;
	public static final int ACTION_ID_SEND_TELNO = 25;
	public static final int ACTION_ID_REJECT_AUTH_CALL = 26;

	public static final int ACTION_ID_LOAD_DATA = 27;
	public static final int ACTION_ID_Refresh_Status = 28;

	public static final int ACTION_ID_OPEN_MSG = 29;

	public static final int ACTION_ID_VIDEO_CALL = 30;

	public static final int ACTION_ID_MESSAGE_BROAD = 31;

	// 20120912 新增媒体呼叫类型
	public static final int ACTION_ID_Media_CALL = 32;

	public static final int ACTION_ID_TONGJI_DATA = 40;// 过滤

	// 2017/1/4
	public static final int ACTION_ID_OPEN_LOWPOWERMSG = 41;// 增加打开低电短信action

	public static final int Status_VLR_USER_STATUS_LISTENING = 0X01; // 用户状态为组呼听话方
	public static final int Status_VLR_USER_STATUS_TALKING = 0X02; // 用户状态为组呼讲话方
	public static final int Status_VLR_USER_STATUS_TEL_BUSY = 0X03; // 用户状态为单呼忙
	public static final int Status_VLR_USER_STATUS_SMS_BUSY = 0X04; // 用户状态为短信忙
	public static final int Status_VLR_USER_STATUS_DATA_BUSY = 0X05; // 用户状态为数据业务忙
	public static final int Status_VLR_USER_STATUS_BEAR_BUSY = 0X06; // 用户状态为承载业务忙
	public static final int Status_VLR_USER_STATUS_REG_BUSY = 0X07; // 用户状态为注册忙
	public static final int Status_VLR_USER_STATUS_MEDIAMEETING_ZHUXI = 0X08; // 用户状态为会议主席
	public static final int Status_VLR_USER_STATUS_IDLE = 0X10; // 用户状态为空闲
	public static final int Status_VLR_USER_STATUS_LOGOUT = 0X11; // 用户状态为关机
	public static final int Status_VLR_USER_STATUS_UNREACH = 0X12; // 用户不可达
	public static final int Status_VLR_USER_STATUS_NOT_EXIST = 0X13; // 用户不存在

	public static final int Status_VLR_USER_STATUS_SETUP = 0X16; // 呼叫建立中
	public static final int Status_VLR_USER_STATUS_ALERTING = 0X17; // 振铃
	public static final int Status_VLR_USER_STATUS_MONITORED = 0X18; // 环境监听

	//
	public static final int Status_GROUP_USER_STATUS_UNDEFINE = 0X00; // 用户状态为未定义,
	// ytx后台对
	public static final int Status_GROUP_USER_STATUS_LISTENING = 0X01; // 组呼听话中
	public static final int Status_GROUP_USER_STATUS_TALKING = 0X02; // 组呼讲话中
	public static final int Status_GROUP_USER_STATUS_TEL_BUSY = 0X03; // 通话中
	public static final int Status_GROUP_USER_STATUS_CALLING = 0X04; // 组呼中
	public static final int Status_GROUP_USER_STATUS_MEDIAMEETING_ZHUXI = 0X08; // 用户状态为会议主席
	public static final int Status_GROUP_USER_STATUS_IDLE = 0X10; // 用户或组空闲
	public static final int Status_GROUP_USER_STATUS_LOGOUT = 0X11; // 用户关机
	public static final int Status_GROUP_USER_STATUS_UNREACH = 0X12; // 用户不可达
	public static final int Status_GROUP_USER_STATUS_NOT_EXIST = 0X13; // 组不存在

	public static final int Status_GROUP_USER_STATUS_METTING = 0X15; // 呼叫建立中
	public static final int Status_GROUP_USER_STATUS_SETUP = 0X16; // 呼叫建立中
	public static final int Status_GROUP_USER_STATUS_ALERTING = 0X17; // 振铃
	public static final int Status_GROUP_USER_STATUS_MONITORED = 0X18; // 环境监听

	public static final int Status_GROUP_USER_STATUS_MAX = 0X19; // 最大限定值,
	// 对该状态值的上报采取忽略

	public static final int CALL_TYPE_USER = 0;// 单呼
	public static final int CALL_TYPE_GROUP = 1;// 组呼
	public static final int CALL_TYPE_BROADCAST = 2;// 广播
	public static final int CALL_TYPE_instancy = 3;// 紧急呼叫
	public static final int CALL_TYPE_Evc_Montitor = 4;// 环境监听
	public static final int CALL_TYPE_Secu_Monitor = 5;// -缜密监听
	public static final int CALL_TYPE_Force_Break_Group = 6;// -强拆组
	public static final int CALL_TYPE_Force_Break_User = 7;// -强拆用户
	public static final int CALL_TYPE_Force_Insert_Group = 8;// -强插组
	public static final int CALL_TYPE_Force_Insert_User = 9;// -强插用户
	public static final int CALL_TYPE_LinkTel = 10;// -联动话机
	public static final int CALL_TYPE_Meetting = 11;// -会议
	public static final int CALL_TYPE_VideoCall = 12;// -视频呼叫

	public static final int CALL_TYPE_MeettingMediaCall = 13;// -多媒体视频会议

	// 20120912 新增的媒体呼叫类型
	public static final int CALL_TYPE_MediaCall = 14;// -视频呼叫

	//
	public static final int CALL_TYPE_WarmCall = 15;// -告警呼叫进入

	public static final int CALL_TYPE_MutilCall_BROADCAST = 20; // 多方呼叫_广播
	public static final int CALL_TYPE_MutilCall_GROUPCALL = 21; // 多方呼叫_组呼
	public static final int CALL_TYPE_MutilCall_MEETING = 22; // 多方呼叫_会议
	public static final int CALL_TYPE_MutilCall_VIDEOMEETING = 23; // 多方呼叫_多媒体会议

	//
	public static final int CALL_TYPE_Media_Single_up = 30;// 单视频操作
	public static final int CALL_TYPE_Media_Single_down = 31;// 单视频操作
	public static final int CALL_TYPE_Media_Group_up = 32;// 组视频操作
	public static final int CALL_TYPE_Media_Group_down = 33;// 组视频操作
	public static final int CALL_TYPE_Media_Monitor = 34;// 视频监视
	public static final int CALL_TYPE_Media_Trans = 35;// 视频转发

	public static final int CALL_TYPE_Evc_Montitor_voice = 36;// 环境监听
	public static final int CALL_TYPE_Evc_Montitor_video = 37;// 环境监听

	public static final int CALL_TYPE_CARDTASKSEND = 200;// 车辆任务下发
	public static final int CALL_TYPE_CARDTASKFINISH = 201;// 车辆任务完成
	public static final int CALL_TYPE_CARDSPPEDWARM = 202;// 车辆超速告警

	public static final int CALL_TYPE_OnBord_Type = 220;// 上墙板类型

	// 广州人保消息类型
	public static final int Message_type_GZRenbao = 300;
	public static final int Message_video_type_GZRenbao = 301;

	// 低电报警消息类型
	public static final int Message_type_LowPoer = 401;

	public static final int CONNECT_TYPE_DENY = 1;// 1拒绝
	public static final int CONNECT_TYPE_ACCEPT = 0;// 1接受

	public static final int SESSION_STATUS_RING = 1;// 被叫振铃
	public static final int SESSION_STATUS_WAIT_CONNECT = 2;// 等待连接
	public static final int SESSION_STATUS_CONNECTING = 3;// 正在连接
	public static final int SESSION_STATUS_TALK = 4;// 正在通话
	public static final int SESSION_STATUS_REMOTE_RING = 5;// 被叫在振铃
	public static final int SESSION_STATUS_Build_Link = 6;// 正在建立联动话机
	public static final int SESSION_STATUS_Build_RING_Link = 7;// 被叫振铃，建立联动话机

	// public static final int MEDIA_TYPE_G729A = 0;//声音编码
	// public static final int MEDIA_TYPE_G729B = 1;//声音编码
	// public static final int MEDIA_TYPE_G729D = 2;//声音编码
	// public static final int MEDIA_TYPE_711 = 3;//声音编码
	// public static final int MEDIA_TYPE_723_1 = 4;//声音编码

	public static final int NODE_TYPE_Home = 0; // 总部
	public static final int NODE_TYPE_Region = 1;// 大区
	public static final int NODE_TYPE_WorkSpace = 2; // 操作区
	public static final int NODE_TYPE_Plant = 3;// 卫星
	public static final int NODE_TYPE_INTENERT = 4;// 互连网

	public static final int NODE_Status_Online = 0;// 在线
	public static final int NODE_Status_OffLine = 1;// 离线

	public static boolean isVirtualNodeType(int noteType) {
		if (noteType == MainConstant.NODE_TYPE_Home || noteType == MainConstant.NODE_TYPE_Region || noteType == MainConstant.NODE_TYPE_WorkSpace) {
			return false;
		}

		return true;
	}

	public static short Enable_LinkCallTelNo = 1;
	public static short Enable_NightServiceTellNO = 2;

	public static final int FIELD_TYPE_NAME = 1;// 名称
	public static final int FIELD_TYPE_TYPE = 2;// 类型
	public static final int FIELD_TYPE_Status = 3;// 状态
	public static final int FIELD_TYPE_ID = 4;
	public static final int FIELD_TYPE_USER_NUM = 5;
	public static final int FIELD_TYPE_TEL = 6;
	public static final int FIELD_TYPE_MGR_RIGHT = 7;
	public static final int FIELD_TYPE_SPEEKER = 8;
	public static final int FIELD_TYPE_FORCE_INSERT = 9;
	public static final int FIELD_TYPE_WAITING_STATUS = 10;
	public static final int FIELD_TYPE_WAIT_NUM = 11;

	public static final int FIELD_TYPE_VOICE_OPEN = 12;
	public static final int FIELD_TYPE_MessageOpen = 13;
	public static final int FIELD_TYPE_DataSerOpen = 14;
	public static final int FIELD_TYPE_Supplement = 15;
	public static final int FIELD_TYPE_Priority = 16;
	public static final int FIELD_TYPE_GCallTimer = 17;
	public static final int FIELD_TYPE_FreeTimer = 18;
	public static final int FIELD_TYPE_LETimer = 19;

	public static final int FIELD_TYPE_TALK_PEER_TEL = 20;
	public static final int FIELD_TYPE_UserPriority = 21;
	public static final int FIELD_TYPE_AuthCallTelNo = 22;

	public static final int FIELD_TYPE_PTT_Priority = 23;
	public static final int FIELD_TYPE_UserProInGrp = 24;

	public static final int FIELD_TYPE_IS_DISPATHER = 25;
	public static final int FIELD_TYPE_BackgroudImg = 26;
	public static final int FIELD_TYPE_ParentNumber = 27;
	public static final int FIELD_TYPE_IP = 28;
	public static final int FIELD_TYPE_Port = 29;
	public static final int FIELD_TYPE_MULI_IP = 30;

	public static final int FIELD_TYPE_IS_VITUARL_NODE = 31;
	public static final int FIELD_TYPE_NODE_Number = 32;

	// 在线总成员
	public static final int FIELD_TYPE_USER_NUM_OnLine = 33;

	public static final int FIELD_TYPE_DEFAULT_LABEL = FIELD_TYPE_NAME;
	public static final int FIELD_TYPE_DEFAULT_SEC_LABEL = 101;

	public static final int ERROR_HLR_NO_RESULT = 3997;
	public static final int ERROR_HLR_INFO_LOSS = 3998;

	public static final String ICON_EXT_USER_calling = "calling";
	public static final String ICON_EXT_USER_gListen = "gListen";
	public static final String ICON_EXT_USER_gSpeak = "gSpeak";
	public static final String ICON_EXT_USER_meeting = "meeting";
	public static final String ICON_EXT_USER_mulCalling = "mulCalling";
	public static final String ICON_EXT_USER_offline = "offline";
	public static final String ICON_EXT_USER_online = "online";
	public static final String ICON_EXT_USER_ring = "ring";

	public static final String[] ICON_EXT_USER_LIST = { ICON_EXT_USER_calling, ICON_EXT_USER_gListen, ICON_EXT_USER_gSpeak, ICON_EXT_USER_meeting, ICON_EXT_USER_mulCalling, ICON_EXT_USER_offline,
			ICON_EXT_USER_online, ICON_EXT_USER_ring };

	public static final String ICON_EXT_GROUP_broadcast = "broadcast";
	public static final String ICON_EXT_GROUP_online = "online";
	public static final String ICON_EXT_GROUP_metting = "meeting";
	public static final String ICON_EXT_GROUP_offline = "offline";
	public static final String ICON_EXT_GROUP_calling = "calling";
	public static final String[] ICON_EXT_GROUP_LIST = { ICON_EXT_GROUP_broadcast, ICON_EXT_GROUP_online, ICON_EXT_GROUP_metting, ICON_EXT_GROUP_offline, ICON_EXT_GROUP_calling };

	public static final String ICON_EXT_VIDEO_online = "online";
	public static final String ICON_EXT_VIDEO_offline = "offline";
	public static final String[] ICON_EXT_VIDEO_LIST = { ICON_EXT_VIDEO_online, ICON_EXT_VIDEO_offline };

	/**
	 * 判断语言版本
	 * 
	 * @return
	 */
	public static boolean isChinese() {
		return true;
	}

	// admin 的头
	public static final String AdminManagerUserHead = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
	// 组织管理者头
	public static final String OrgManagerUserHead = "F";
}
